#include<iostream>
using namespace std;
int main()
{
	void swap(int &,int &);
	int a,b;
	a=1,b=2;//cin>>a>>b;
	swap(a,b);
	cout<<a<<" "<<b<<endl;
	system("pause");
	return 0;
}

void swap(int &x,int &y)
{int temp;
 temp=x;
 x=y;
 y=temp;
 cout<<x<<" "<<y<<endl;
}
